<%@ Page Language="VB" Trace="false" AutoEventWireup="false" CodeFile="dev_Imprimir.aspx.vb" Inherits="_Default" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>.::Poderosa::.</title>
    <link href="style/StyleSheet_impresion.css" rel="stylesheet" type="text/css" />
        <script language="javascript" type="text/javascript" src="script/functions.js"></script>
        <script language="javascript" type="text/javascript" src="script/validacion.js"></script>
      <!--aqui va el script para el text area y para el jquery, el jquery es para el textarea y para el suggets-->
    
      <!--<script language="javascript" type="text/javascript" src="script/jquery-ui-1.8.1.custom.min.js"></script>
      -->
      <script language="javascript" type="text/javascript" src="script/jquery-1.4.2.min.js"></script>
      <script language="javascript" type="text/javascript" src="script/jquery.cokidoo-textarea.js"></script>
      <script  type="text/javascript">
            $(document).ready(function(){
                $(".ClassAcuerdos").autoResize();
            });
            function listar(){
                $(".ClassAcuerdos").autoResize();
            }
            
            function suggets_acuerdos(source, eventArgs)
            {
                //alert(eventArgs.get_text() + " " + eventArgs.get_value());
                var ids  = document.getElementById('hdn_idRespon_acuerdos_sugget').value.split("|");
                var values = eventArgs.get_value().split("|");
                if(ids.length>0 && values.length>0){
                    document.getElementById(ids[0]).value = values[0];
                    document.getElementById(ids[1]).value = values[1];
                    alert(document.getElementById(ids[1]).value);
                }
            }
            
            function suggets_agenda(source, eventArgs)
            {
                //alert(eventArgs.get_text() + " " + eventArgs.get_value());
                var id  = document.getElementById('hdn_idRespon_agenda_sugget').value;
                document.getElementById(id).value = eventArgs.get_value();
            }
            
            function suggets_agenda(source, eventArgs)
            {
                //alert(eventArgs.get_text() + " " + eventArgs.get_value());
                var id  = document.getElementById('hdn_idRespon_agenda_sugget').value;
                document.getElementById(id).value = eventArgs.get_value();
            }
            
            function suggets_Moderador(source, eventArgs)
            {
                //alert(eventArgs.get_text() + " " + eventArgs.get_value());
                
                document.getElementById("txtidmodderador").value = eventArgs.get_value();
                //alert(document.getElementById(id).value);
            }
 
            function suggets_Secretario(source, eventArgs)
            {
                //alert(eventArgs.get_text() + " " + eventArgs.get_value());
                
                document.getElementById("txtidSecretario").value = eventArgs.get_value();
                //alert(document.getElementById(id).value);
            }
            function suggets_Facilitador(source, eventArgs)
            {
                //alert(eventArgs.get_text() + " " + eventArgs.get_value());
                
                document.getElementById("txtidFacilitador").value = eventArgs.get_value();
                //alert(document.getElementById(id).value);
            }
            
            function suggets_Asistentes(source, eventArgs)
            {
                //alert(eventArgs.get_text() + " " + eventArgs.get_value());
                var cod = eventArgs.get_value().split("|");
                var strText  = document.getElementById('hdn_asistente_sugget').value.split("|");
                
                if(strText.length>0){
                    //recupero la informacion parametrizada del webmethod, y del hidden que guarda 2 nombres del text
                    document.getElementById(strText[0]).value = cod[0];
                    document.getElementById(strText[1]).value = cod[1];
                    //alert(document.getElementById(strText[0]).value);
                }
                //alert(document.getElementById(id).value);
            }
      </script>
      
</head>
<body>
    <form id="form1" runat="server">
    
    
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div style="width:700px; margin:0px auto 0px auto; text-align:center;">
        <table  border="0" cellpadding="0" cellspacing="0" width="700" >
            <tr>
                <td align="left" style="height: 43px">
                    <img alt="" src="images/logotype.JPG" /></td>
            </tr>
            <tr>
                <td align="left" style="height: 10px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="center">
                    <table cellpadding="0" cellspacing="0" class="cabecera" width="495">
                        <tr>
                            <td style="width: 380px" class="colorCabecera">
                                ACTA DE REUNI&Oacute;N
                            </td>
                            <td align="left" class="espacioCelda">
                                <asp:Label ID="txtnumacta" runat="server" Width="87px"></asp:Label></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td align="center">
                </td>
            </tr>
            <tr>
                <td style="text-align: center; height: 20px;">
                </td>
            </tr>
            <tr>
                <td><!--aqui va el segundo modulo del detalle-->
                    <table cellpadding="0" cellspacing="0" style="width:650px;"  border="0">
                        <tr>
                            <td align="left"><!--aqui va la cabecera lateeral izquierda-->
                                <table style="width:300px;" cellpadding="0" cellspacing="0" class="tblBorderNegro">
                                    <tr>
                                        <td style="width:152px;" align="left" class="espacioCelda">Equipo de Trabajo:</td>
                                        <td class="espacioCelda" align="left">
                                            <asp:Label ID="txtequipo" runat="server"></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 152px" align="left" class="espacioCelda">&Aacute;rea:</td>
                                        <td class="espacioCelda" align="left">
                                            <asp:Label ID="txtArea" runat="server"></asp:Label></td>
                                    </tr>
                                    
                                    <tr>
                                        <td style="width: 152px" align="left" class="espacioCelda">Lugar:</td>
                                        <td align="left" class="espacioCelda">
                                            <asp:Label ID="txtlugar" runat="server"></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 152px" align="left" class="espacioCelda">Moderador:
                                        </td>
                                        <td align="left" class="espacioCelda">
                                            
                                                <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                                                    <ContentTemplate>
                                                        <asp:Label ID="txtmoderador" runat="server" Width="218px"></asp:Label>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 152px" align="left" class="espacioCelda">
                                            Secretario:
                                        </td>
                                        <td align="left" class="espacioCelda">
                                            <asp:UpdatePanel ID="UpdatePanel7" runat="server">
                                                <ContentTemplate>
                                                    <asp:Label ID="txtsecretario" runat="server" Width="254px"></asp:Label>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 152px" align="left" class="espacioCelda">
                                            Facilitador:
                                        </td>
                                        <td align="left" class="espacioCelda">
                                            <asp:UpdatePanel ID="UpdatePanel8" runat="server">
                                                <ContentTemplate>
                                                    <asp:Label ID="txtfacilitador" runat="server" Width="254px"></asp:Label>&nbsp;
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td style="width:30px; height: 111px;">
                                
                            </td>
                            <td style="height: 111px" valign="top" align="right">
                               <table cellpadding="0" cellspacing="0"  border="0" style="width:300px;" class="tblBorderNegro">
                                    <tr>
                                        <td style="width:70px;" align="left" class="espacioCelda">Fecha:</td>
                                        <td style="width:90px;" align="left" class="espacioCelda">
                                            <asp:Label ID="txtFechaActa" runat="server"></asp:Label></td>
                                        <td align="left" class="espacioCelda">Semana:</td>
                                        <td style="width:139px;" align="left" class="espacioCelda">
                                            &nbsp;<asp:Label ID="txtsemana" runat="server" Width="68px"></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="espacioCelda">
                                            Inicio:</td>
                                        <td align="left" class="espacioCelda">
                                            <asp:Label ID="txtinicio" runat="server"></asp:Label></td>
                                        <td align="left" class="espacioCelda">
                                            Fin:</td>
                                        <td align="left" class="espacioCelda">
                                            <asp:Label ID="txtfin" runat="server"></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="espacioCelda">
                                            Duracion:</td>
                                        <td colspan="3" align="left" class="espacioCelda">
                                            &nbsp;<asp:Label ID="txtduracion" runat="server" Width="174px"></asp:Label></td>
                                    </tr>
                               </table>                                 &nbsp;&nbsp;
                            </td>
                        </tr>
                    </table> 
                </td>
            </tr>
            <tr>
                <td style="height:35px;">
                    &nbsp;<asp:GridView ID="gvAsistentes" runat="server" AutoGenerateColumns="False" Width="100%" DataKeyNames="activo" CssClass="GridView" OnRowDataBound="gvAsistentes_RowDataBound1">
                                           <Columns>
                                               <asp:BoundField DataField="num" HeaderText="N&#176;" >
                                                   <ItemStyle Width="22px" />
                                               </asp:BoundField>
                                               <asp:BoundField DataField="nombre" HeaderText="Nombre">
                                                   <ItemStyle Width="250px" HorizontalAlign="Left" />
                                               </asp:BoundField>
                                               <asp:BoundField DataField="cargo" HeaderText="Cargo">
                                                   <ItemStyle Width="233px" HorizontalAlign="Left" />
                                               </asp:BoundField>
                                               <asp:BoundField HeaderText="Firma" />
                                           </Columns>
                                       </asp:GridView>
                                    <!--linea de separacion--></td>
            </tr>
            <tr>
                <td >
                    <asp:UpdatePanel ID="UpdatePanel6" runat="server">
                        <ContentTemplate>
                            <table style="width:100%" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="cabeceraDetalle" style="height: 21px" align="left">
                                        I. Asistentes:												</td>
                                </tr>
                                <tr>
                                    <td >
                                        <table>
                                            <tr>
                                                <td>
                                                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
                                                        <Columns>
                                                            <asp:BoundField DataField="num" HeaderText="N&#186;" />
                                                            <asp:BoundField DataField="Nombre" HeaderText="Nombre" />
                                                            <asp:BoundField HeaderText="Firma" />
                                                        </Columns>
                                                    </asp:GridView>
                                                </td>
                                                <td >
                                                    <asp:GridView ID="GridView2" runat="server">
                                                    </asp:GridView>
                                                </td>
                                                <td>
                                                    <asp:GridView ID="GridView3" runat="server">
                                                    </asp:GridView>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                            &nbsp;
                            <asp:HiddenField ID="hdn_asistente_sugget" runat="server" />
                      </ContentTemplate>
                   </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td style="height: 35px">&nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <asp:UpdatePanel ID="UpdatePanel5" runat="server">
                        <ContentTemplate>
                            <table style="width:100%" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="cabeceraDetalle" colspan="4" align="left">
                                        II. Agenda:
                                        </td>
                                </tr>
                                <tr >
                                    <td colspan="4">
                                        <asp:GridView ID="gvAgenda" runat="server" AutoGenerateColumns="False" Width="100%" SkinID="gridView1" DataKeyNames="activo" CssClass="GridView">
                                            <Columns>
                                                <asp:BoundField DataField="num" HeaderText="N&#176;">
                                                    <ItemStyle Width="22px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Actividad" HeaderText="Actividad">
                                                    <ItemStyle Width="430px" HorizontalAlign="Left" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Responsable" HeaderText="Responsable" >
                                                    <ItemStyle HorizontalAlign="Left" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Tiempo_Asignado" HeaderText="Tiempo" >
                                                    <ItemStyle HorizontalAlign="Left" />
                                                </asp:BoundField>
                                            </Columns>
                                            <RowStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                                            <EmptyDataRowStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                                            <HeaderStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                                            <AlternatingRowStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                                        </asp:GridView>
                                    </td>
                                </tr>
                          </table>
                      </ContentTemplate>
                    </asp:UpdatePanel>
                    <asp:HiddenField ID="hdn_idRespon_agenda_sugget" runat="server" />
                </td>
            </tr>
            <tr>
                <td style="height: 35px">&nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                        <ContentTemplate>
                            <table style="width:100%" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="cabeceraDetalle" colspan="5" align="left">
                                        III. Desarrollo de la Agenda:
                                        </td>
                                </tr>
                                <tr >
                                    <td colspan="5"><asp:GridView ID="gvDesarrolloAgenda" runat="server" AutoGenerateColumns="False" Width="100%" SkinID="gridView1" DataKeyNames="activo" CssClass="GridView">
                                        <Columns>
                                            <asp:BoundField DataField="num" HeaderText="N&#176;" >
                                                <ItemStyle Width="22px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Actividad" HeaderText="Actividad">
                                                <ItemStyle CssClass="espacioCelda" Width="430px" HorizontalAlign="Left" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="hora_inicio" HeaderText="Hora Inicio">
                                                <ItemStyle CssClass="espacioCelda" Width="75px" HorizontalAlign="Left" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="hora_final" HeaderText="Hora Final">
                                                <ItemStyle CssClass="espacioCelda" Width="75px" HorizontalAlign="Left" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Tiempo_Total" HeaderText="Tiempo Total">
                                                <ItemStyle CssClass="espacioCelda" HorizontalAlign="Left" />
                                            </asp:BoundField>
                                        </Columns>
                                        </asp:GridView>
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                   </asp:UpdatePanel>   
                </td>
            </tr>
            <tr>
                <td style="height: 35px">
                </td>
            </tr>
            <tr>
                <td>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <table style="width:100%" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="cabeceraDetalle" colspan="5" align="left">
                                        IV. Acuerdos:
                                        </td>
                                </tr>
                                <tr >
                                    <td colspan="5">
                                                <asp:GridView ID="gvAcuerdos" runat="server" AutoGenerateColumns="False" Width="100%" SkinID="gridView1" DataKeyNames="activo" CssClass="GridView">
                                                    <Columns>
                                                        <asp:BoundField DataField="num" HeaderText="N&#176;">
                                                            <ItemStyle Width="22px" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="acuerdo" HeaderText="Acuerdo">
                                                            <ItemStyle CssClass="espacioCelda" Width="400px" HorizontalAlign="Left" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="Plazo" HeaderText="Plazo">
                                                            <ItemStyle CssClass="espacioCelda" Width="100px" HorizontalAlign="Left" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="Responsable" HeaderText="Responsable">
                                                            <ItemStyle CssClass="espacioCelda" Width="200px" HorizontalAlign="Left" />
                                                        </asp:BoundField>
                                                    </Columns>
                                                    <HeaderStyle BackColor="#FFCF00" />
                                                </asp:GridView>
                                            
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                  </asp:UpdatePanel>
                    <asp:HiddenField ID="hdn_idRespon_acuerdos_sugget" runat="server" />
                </td>
            </tr>
            <tr>
                <td style="height: 35px">
                </td>
            </tr>
            <tr>
                <td>
                     <table style="width:100%" cellpadding="0" cellspacing="0">
                        <tr>
                            <td class="cabeceraDetalle" colspan="5" align="left">
                                V. Siguiente Reuni&oacute;n
                            </td>
                        </tr>
                        <tr >
                            <td colspan="5" style="height: 60px" align="left">
                                <table cellpadding="0" cellspacing="0" width="650">
                                    <tr>
                                        <td style="width: 7px" colspan="5">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <table cellpadding="0" cellspacing="0" class="Sig_reunion">
                                                <tr>
                                                    <td class="Sig_reunionColor espacioCelda">
                                                        Fecha:</td>
                                                    <td align="left" class="espacioCelda">
                                                        <asp:Label ID="txtfecSigReunion" runat="server" Text="Label" Width="78px"></asp:Label></td>
                                                </tr>
                                            </table>                                       
                                        </td>
                                        <td style="width:15px;"></td>
                                        <td style="width: 190px">
                                             <table cellpadding="0" cellspacing="0"  class="Sig_reunion_lugar">
                                                <tr>
                                                    <td class="Sig_reunionColor espacioCelda">
                                                        Lugar:
                                                    </td>
                                                    <td style="width: 98px" align="left" class="espacioCelda">
                                                        <asp:Label ID="txtlugarSigReunion" runat="server" Text="Label" Width="70px"></asp:Label></td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td style="width:15px;"></td>
                                        <td align="right">
                                            <table cellpadding="0" cellspacing="0"  class="Sig_reunion">
                                                <tr>
                                                    <td class="Sig_reunionColor espacioCelda">Hora:</td>
                                                    <td align="left" class="espacioCelda">
                                                        <asp:Label ID="txthoraSigReunion" runat="server" Text="Label" Width="114px"></asp:Label></td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="5" style="width: 7px">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                        <ContentTemplate>
                            <table style="width:100%" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="cabeceraDetalle" colspan="5" align="left">
                                        Agenda Preliminar</td>
                                </tr>
                                <tr >
                                    <td colspan="5"><asp:GridView ID="gvAgendaPreliminar" runat="server" AutoGenerateColumns="False" Width="100%" SkinID="gridView1" DataKeyNames="activo" CssClass="GridView">
                                        <Columns>
                                            <asp:BoundField DataField="num" HeaderText="N&#176;">
                                                <ItemStyle Width="22px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Agenda_Preliminar" >
                                                <ItemStyle HorizontalAlign="Left" />
                                            </asp:BoundField>
                                        </Columns>
                                        </asp:GridView>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="5" style="height: 8px">&nbsp;</td>
                                </tr>
                            </table>
                      </ContentTemplate>
                   </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:LinkButton ID="lbRetornar1" runat="server" CssClass="btnRetornar" >Retornar</asp:LinkButton>
                    </td>
            </tr>
        </table>
    </div>
    </form>
    
</body>
</html>
